package com.coding.kan_yi_dao.util;


import com.coding.kan_yi_dao.entity.User;

public class UserHolder {
    private static ThreadLocal<User> tl = new ThreadLocal<User>();

    public static void set(User user){
        tl.set(user);
    }
    public static User get(){
        return tl.get();
    }
    public static void remove(){
        tl.remove();
    }
}
